//
//  YCAllTeachVideoViewController.m
//  YCSchool
//
//  Created by Kylin on 16/5/7.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import "YCAllTeachVideoViewController.h"
#import "YCAllTeachVideoCell.h"

@interface YCAllTeachVideoViewController ()
/**数据源*/

@property(nonatomic,strong)NSArray *dataSource  ;
@end

static NSString *const allTeachVideoCell = @"allTeachVideoCell";
@implementation YCAllTeachVideoViewController

- (instancetype)init{
    if (self = [super init]) {
        
    }
    
    return self;
}
- (NSArray *)dataSource{
    if (!_dataSource) {
        _dataSource = [NSArray array];
    }
    
    return _dataSource;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self yc_addBackBarButtonItem];
    
    self.title = @"视频教学";
    
    [self.tableView registerClass:[YCAllTeachVideoCell class] forCellReuseIdentifier:allTeachVideoCell];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 3;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    YCAllTeachVideoCell *cell = [tableView dequeueReusableCellWithIdentifier:allTeachVideoCell];
                                 
    return cell;
    
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 219;
}
@end
